package com.wanxi.mapper;

import com.wanxi.model.Team;

import java.util.List;
import java.util.Map;

public interface TeamMapper {
    List<Team> getTeamList(Map map);

    long getTeamCount(Map map);

    int addTeam(Team team);

    Team getTeamByCode(String code);

    int editTeam(Map map);

    void freshTeamCrew(String code);

    Team getTeamByLeader(String leader);

    int deleteTeam(Integer id);

    List<Team> getAllTeam();
}
